• File: db_run_sql_all.php
  • Full Path: C:/htdocs/REEFTintegrationLog_test/REEFTintegrationLog/include/db_run_sql_all.php
  • Date Modified: 04/30/2025 7:56 AM
  • File size: 1.06 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
//======================================================================================
//
// Function: Run a SQL statement against some database
//
// NOTE: config.php must have been include before you include this!
//
// Programmer: JKJ
// Date      : 2022-01-06
//
// ------------------------------------------------------------------------------------------
// One year since the crazy fvcking Trump supporters tried to overcome US democracy.
// fvck TRUMP AND ALL HIS SUPPORTERS AND DF AND NY BOGERLIGE AND ALL RIGHT WING SHITHEADS!!!!
// ------------------------------------------------------------------------------------------
//
// Copyright Reeft A/S (c) - 2021
//======================================================================================

	if ( $DFT_DATABASE_TO_USE == '*MYSQL') {

		$data = mysqli_query( $conn,$sql);
		$current_elm = mysqli_num_rows($data);

	}
	else
	{

		$result = $file_db->prepare( $sql );
		$result->execute();
		$current_elm = $result->rowCount();
		$data = $result->fetchAll();		
		
	}


?>